<?php

/* Classe parente regroupant les prototypes des méthodes des classes filles */

class Base
{
	public function __construct(array $data) {
		foreach($data as $key => $value) {
			$method = 'set'.ucfirst($key);
			if(method_exists($this, $method)) {
				$this->$method($value);
			}
		}
	}
}

?>